package com.farmer.common.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Knife4j API文档配置
 */
@Configuration
public class Knife4jConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("助农扶贫系统API文档")
                        .version("1.0.0")
                        .description("助农扶贫系统后端API接口文档")
                        .contact(new Contact()
                                .name("开发团队")
                                .email("dev@farmer.com")
                                .url("https://www.farmer.com")));
    }
} 